<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
            <?php echo $this->Html->charset(); ?>
            <title>
                    <?php echo __('Guest Tracker: '); ?>
                    <?php echo $title_for_layout; ?>
            </title>
            <?php
                    echo $this->Html->meta('icon');
                    echo $this->Html->css('main');
                    
                    echo $this->Html->script('jquery.js');
                    echo $this->Html->script('jquery.form.js');

                    echo $scripts_for_layout;
            ?>
    </head>
    <body bgcolor="grey">

        <div class="header">
            <div class="header_line"></div>
            <div class="header_content">        
                <div class="logo_header"></div>
                <div class="title">Guest Tracker</div>
                <div class="account">
                    <?php //echo $this->element( 'account' ); ?>
                </div>
            </div>
        </div>
        
        <table class="middle_zone">
            <tbody>
                <?php echo $this->element('menu',array('controllerDomain' => $controllerDomain,'rights' => @$userInfo['rights'])); ?>
                <tr>
                    <td>
                        <div class="middle_zone_content">
                            <?php echo $this->Session->flash( 'auth' ); ?>
                            <?php echo $this->Session->flash(); ?>
                            <?php echo $content_for_layout; ?>   
                        </div>
                    </td>
                </tr>
                <?php echo $this->element( 'footer' ); ?>
            </tbody>    
        </table>
        <?php echo $this->Js->writeBuffer(); ?>
        <?php //echo $this->element('sql_dump'); ?>
    </body>
</html>
